-- GENERATED SPELL FOR [Fey Drake] --


function spell0_20713(pUnit, Event) --@Blink,n/a--
pUnit:FullCastSpellOnTarget(36718,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20713', 1261, 1)
end

function spell1_20713(pUnit, Event) --@Mana Burn,n/a--
pUnit:FullCastSpellOnTarget(11981,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20713', 3000, 1)
end

function Sorts_20713(pUnit, Event)
local choix_sorts_20713 = math.random(0, 1)
if choix_sorts_20713 == 0 then
pUnit:RegisterEvent('spell0_20713', 1, 1)
end
if choix_sorts_20713 == 1 then
pUnit:RegisterEvent('spell1_20713', 1, 1)
end
end

function mob20713_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20713', math.random(1500, 3000), 1)
end

function mob20713_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20713_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20713_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20713, 1, 'mob20713_Action')
RegisterUnitEvent(20713, 2, 'mob20713_Leave')
RegisterUnitEvent(20713, 3, 'mob20713_Kill')
RegisterUnitEvent(20713, 4, 'mob20713_Die')
